import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        open_recommend_char_flag: false, // 是否打开人物介绍侧边栏
        open_recommend_city_flag: false, // 是否打开人物介绍侧边栏
        from_: null, // 用户点击的第一个角色 移动
        to: null, // 用户点击的第二个角色

        left_side: true

    },

    mutations: {
        set_open_recommend_char_flag(state, playload) {
            state.open_recommend_char_flag = playload;
        },
        set_open_recommend_city_flag(state, playload) {
            state.open_recommend_city_flag = playload;
        },
        set_from(state, playload) {
            state.from_ = playload;
        },
        set_to(state, playload) {
            state.to = playload;
        },
        set_left_side(state, playload){
            state.left_side = playload
        }
    },
    actions: {},
    modules: {}
})
